package com.sl.au.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonBackReference;

/**
 * 单元网格区域信息(地理范围)
 * 
 * @author HeGuangChuan
 *
 */
@Entity
@Table(name = "sl_wcsi_gridAreaDetail")
public class GridAreaDetailInfo extends Root {

	private int longlatOrder;// 描绘点的顺序
	private double longtitude;
	private double latitude;
	// 所属的单元网格
	@ManyToOne(cascade={CascadeType.MERGE})
	@JsonBackReference
	@JoinColumn(name = "gridAreaId",nullable = true)
	private GridAreaInfo gridInfo;

	public int getLonglatOrder() {
		return longlatOrder;
	}

	public void setLonglatOrder(int longlatOrder) {
		this.longlatOrder = longlatOrder;
	}

	public double getLongtitude() {
		return longtitude;
	}

	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public GridAreaInfo getGridInfo() {
		return gridInfo;
	}

	public void setGridInfo(GridAreaInfo gridInfo) {
		this.gridInfo = gridInfo;
	}

}
